import { createStore } from 'vuex'
const store = createStore({
  state() {
    return {
      name: 'zjd',
      age: 18,
      height: 1.88,
    }
  },
  getters: {
    nameInfo(state) {
      return `name: ${state.name}`
    },
    ageInfo(state) {
      return `age: ${state.age}`
    },
    heightInfo(state) {
      return `height: ${state.height}`
    },
  },
})
export default store
